// samsting : this file is auto create.

#include "Ram/2015-05-01/ListRolesResponse.h"

namespace aliyun { namespace Ram {

ListRolesResponse::ListRolesResponse() {
}

const string& ListRolesResponse::Role::GetRoleId(void) const {
  return RoleId_;
}

const string& ListRolesResponse::Role::GetRoleName(void) const {
  return RoleName_;
}

const string& ListRolesResponse::Role::GetArn(void) const {
  return Arn_;
}

const string& ListRolesResponse::Role::GetDescription(void) const {
  return Description_;
}

const string& ListRolesResponse::Role::GetCreateDate(void) const {
  return CreateDate_;
}

const string& ListRolesResponse::Role::GetUpdateDate(void) const {
  return UpdateDate_;
}

const std::vector<ListRolesResponse::Role>& ListRolesResponse::GetRoles(void) const {
  return Roles_;
}

bool ListRolesResponse::GetIsTruncated(void) const {
  return IsTruncated_;
}

const string& ListRolesResponse::GetMarker(void) const {
  return Marker_;
}

const char* ListRolesResponse::BaseKey(void) {
  return "ListRolesResponse";
}

void ListRolesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Roles__length = 0;
  UnmarshallerInt(Roles__length, response_map, "ListRolesResponse.Roles.Length");
  if(Roles__length >= 0) {
    Roles_.resize(Roles__length);
    for(int i1 = 0; i1 < Roles__length; i1++) {
      UnmarshallerString(Roles_[i1].RoleId_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].RoleId");
      UnmarshallerString(Roles_[i1].RoleName_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].RoleName");
      UnmarshallerString(Roles_[i1].Arn_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].Arn");
      UnmarshallerString(Roles_[i1].Description_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Roles_[i1].CreateDate_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].CreateDate");
      UnmarshallerString(Roles_[i1].UpdateDate_, response_map, "ListRolesResponse.Roles["+string_ValueOfInt(i1)+"].UpdateDate");
    } // for(int i1 = 0; i1 < Roles__length; i1++) {
  } // if(Roles__length >= 0) {

  UnmarshallerBool(IsTruncated_, response_map, "ListRolesResponse.IsTruncated");
  UnmarshallerString(Marker_, response_map, "ListRolesResponse.Marker");
}


} } // namespace aliyun { namespace Ram {

// end of file 
